<?php
	require_once('newSearch.php');
	$content_jnal="";
	$content_conf="";	
	
	$search_count=getAllPapers($content_jnal,"J");	
	$search_count+=getAllPapers($content_conf,"C");
?>

<!DOCTYPE html>

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>宽带组:全部学术成果</title>

  <link href="css/bootstrapmin.css" rel="stylesheet" media="screen">
  <link href="css/style.css" rel="stylesheet">
	<script type="text/javascript" src="js/header.js"></script>




  
</head>

<body style="background:url(img/index_bg.jpg);">

<?php 
	require("header.php");
?>
<div id="achievement" >
<?php
	require("DBops.php");
	require_once("editPublishedPaper.php");
	@session_start();
	$con = connect("localhost", "root", "", "lab");
		if(isset($_SESSION['user'])){
			$result = query($con, "*", "personalinfo", "ID", $_SESSION['user']);
			$row = mysql_fetch_array($result);
			$loginID=$row['role'];
			echo "<div style='height:30px;background:#A4D3EE;margin-top:0px;'>
              <p  style='margin-right:10px;float:right;'>登录为: <a href = \"infor.php?id=".$_SESSION['user']."\">".$_SESSION['user']."</a></font>&nbsp&nbsp<a  onclick=\"if(confirm('确定要退出系统吗?')){parent.location.href ='logout.php'}\" href=\"javascript:void(0)\">退出</a></font></p></div>";
		}
		else {
			$_SESSION['userurl'] = $_SERVER['REQUEST_URI']; 
			echo "<div style='height:30px;background:#A4D3EE;'>
				<ul>
					 <li  style='margin-right:10px;float:right;'><a href ='login.php'>登录</a></div>";

		}

?>				

<script type="text/javascript">

function hdShowAbs(abs_id)
	{
		(document.getElementById(abs_id).style.display == 'block')?(document.getElementById(abs_id).style.display ='none'):(document.getElementById(abs_id).style.display = 'block');
		
	}
</script>

<?php
	if(!empty($content_jnal)){
?>
		<strong>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;期刊论文:</strong>
		<ul class="Results" >
<?php
		echo $content_jnal.EOL;
	}
	if(!empty($content_conf)){
?>
		</ul>
		<ul class="Results">
		<strong>会议论文:</strong>
<?php
		echo $content_conf.EOL;
	}
?>
		</ul>
</ul>
</div>
</body>
</html>